<?php
/** 验证ID */
namespace app\api\validate;

class IDMustBePositiveInt extends BaseValidate{

    protected $rule=[
        'id'=>'require|isPositiveInteger',
    ];
    protected $message=[
        'ids'=>'id必须是正整数'
    ];
}